[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-15 Thread Jim
ot over-ride the over-ride? Or, put >> another way, would the following not make sense: >> if --synctex is used on the command line >> create synctex file >> else if --nonstop is used on the command line >> do not create the synctex file >> else if \setupsynctex[...

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
rtparagraphs Command/ startparallel Command/ startplacefloat Command/ startplacepairedbox Command/ startsection Command/ startsectionblock Command/ startstartstop Command/ startstop Command/ startstyle Command/ starttabulate Command/ starttextbackground Command/ starttyping Command/ startviewerlayer

[NTG-context] Re: Most recent context doesn't like synctex?

2024-04-13 Thread Mikael Sundqvist
he command line > do not create the synctex file > else if \setupsynctex[...] is used in the source file > create the synctex file > else > do not create the synctex file > > > - the ma

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
On 4/6/24 11:43, madiazm.eo...@gmail.com wrote: > Hi everyone, Hi Miguel, > […] > Am I missing something on the use of this ligature? I don’t think so. In some cases you may not get the ligature for a good reason: \starttyping program --option=value file.ext \stoptyping It w

[NTG-context] upload

2024-04-01 Thread Hans Hagen
rder to get an idea of how we will get rid of the disturbing formulas, you can load the module: \starttyping \usemodule[math-goodriddance] \stoptyping Until becoming the default setting, the command \typ {\goodriddancemath} will bring you into \MLTX\ mode while \typ {\badriddancemath} will bring you

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 17.03.2024 um 17:38: Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote

[NTG-context] issue with typing in footnotes

2024-03-17 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample (which was on the way of showing another issue): \starttext a \starttyping b \stoptyping c \startfootnote a \starttyping b \stoptyping c \stopfootnote \stoptext Current latest (from 2024.03.11 09:34) breaks compilation with both

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
\NC d \NC= e + f \NR[+] \NC g \NC= h + i \stopalign\stopformula \samplefile{knuth} \section{“I expect to see \tex{noalign} only after the \tex{cr} of an alignment.”} \starttyping \samplefile{knuth} \startformula \text{something} + \text{really} + \text{really} + \t

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
currentdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput

[NTG-context] Re: Question to a formular

2024-01-08 Thread Ursula Hermann
lp me please? > > > \starttyping > 0! := 1 > (n + 1)! := (n + 1) n! > \stoptyping Or: \startformula \startalign[n=1,align={1:left}] \NC 0! := 1\NR \NC (n + 1)! := (n + 1) n!\NR \stopalign \stopformula https://wiki.context

[NTG-context] Re: Question to a formular

2024-01-05 Thread Taco Hoekwater
> On 05/01/2024 14:27, Ursula Hermann wrote: > >> Can someone help me please? > > > \starttyping > 0! := 1 > (n + 1)! := (n + 1) n! > \stoptyping Or: \startformula \startalign[n=1,align={1:left}] \NC 0! := 1\NR \NC (n + 1)! := (n + 1) n!\NR

[NTG-context] Re: Question to a formular

2024-01-05 Thread vm via ntg-context
On 05/01/2024 14:27, Ursula Hermann wrote: This is a formular  with  factorial. 0! := 1 (n + 1)! := (n + 1) n! this looks more like a code example than a math formula Can someone help me please? \starttyping 0! := 1 (n + 1)! := (n + 1) n! \stoptyping

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
l) to include symbols for the control characters. In typo-rep there is also %D \starttyping %D \definefontfeature[default][default][mode=node,formatters=strip] %D \stoptyping You included some notes about Khaled, so I guess he faced the same issue. His Amiri font displays the symbols by default, a

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
acters. In typo-rep there is also %D \starttyping %D \definefontfeature[default][default][mode=node,formatters=strip] %D \stoptyping You included some notes about Khaled, so I guess he faced the same issue. His Amiri font displays the symbols by default, as do other Arabic fonts. (It seems he

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
of the \everyinitializeverbatim register because it is used for inline and display verbatim. A better place to add the option is \buff_verbatim_initialize_typing_two for \starttyping and \buff_verbatim_initialize_type_two for \type. ok

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
zeverbatim and then   \startsetups typing:mine   \setbreakpoints[compound]   \stopsetups with   \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible interferen

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen
gparameter \to \everyinitializeverbatim and then \startsetups typing:mine \setbreakpoints[compound] \stopsetups with \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible interferen

[NTG-context] breakpoints in verbatim text

2023-08-17 Thread Alex Leray
the truth: waste-not-want-not \par 2. This is the truth: waste/not/want/not \par 3. This is the truth: waste+not+want+not \par 4. This is the truth: waste(not(want(not)) \par 5. This is the truth: ((waste)not)want)not \starttyping[lines=yes] 1. Thisisthetruth:waste-not-want-not \par 2. Thisisthet

[NTG-context] Re: new align option

2023-08-16 Thread Hraban Ramm
explain? Hraban Am 15.08.23 um 22:31 schrieb Hans Hagen via ntg-context: Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] new align option

2023-08-15 Thread Hans Hagen via ntg-context
Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
Thanks Hans! Le 4/08/23 à 23:21, Hans Hagen a écrit : On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem

[NTG-context] Using

2023-08-04 Thread Alex Leray
Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
g I had never thought of, using PDF comments, thanks!. It's a really nice approach, though weirdly it doesn't work on Okular (Linux+KDE) for me, even though attachments worked fine. I'll try and see why that is. What I had in mind was rather the following: \starttext \starttyping[space=on]

[NTG-context] line numbering for \setuptyping

2022-09-24 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setuplinenumbering[typing] [step=3] \starttext \starttyping[numbering=line] Line Line Line \stoptyping \stoptext Which \setuplinenumbering is applied to typing fragments? Just in case my question isn’t clear: how can I get

Re: [NTG-context] How to display these characters

2022-08-05 Thread Henning Hraban Ramm via ntg-context
Am 05.08.22 um 20:07 schrieb Wolfgang Schuster via ntg-context: juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping The source code is generated with the linux command "tree".

Re: [NTG-context] How to display these characters

2022-08-05 Thread Wolfgang Schuster via ntg-context
juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: Dear all, I have this: \starttext \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping \stoptext The source code is generated with the linux command "tree". The special

[NTG-context] How to display these characters

2022-08-05 Thread juh+ntg-context--- via ntg-context
Dear all, I have this: \starttext \starttyping foo └── bar ├── baz │   └── index.html └── index.html \stoptyping \stoptext The source code is generated with the linux command "tree". The special characters which indicate the folder depth are not displayed. I gu

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-12 Thread Denis Maier via ntg-context
driguez > Betreff: Re: [NTG-context] \startXML vs \startPARSEDXML > > On 5/11/22 11:47, Denis Maier via ntg-context wrote: > > Hi everyone, > > > > the wikipage on \starttyping > > (https://wiki.contextgarden.net/Command/_starttyping > > <https://wiki.cont

Re: [NTG-context] \startXML vs \startPARSEDXML

2022-05-11 Thread Pablo Rodriguez via ntg-context
On 5/11/22 11:47, Denis Maier via ntg-context wrote: > Hi everyone, > > the wikipage on \starttyping > (https://wiki.contextgarden.net/Command/_starttyping > <https://wiki.contextgarden.net/Command/_starttyping>) says there are > some dedicated commands, e.g. \startXML and

[NTG-context] \startXML vs \startPARSEDXML

2022-05-11 Thread Denis Maier via ntg-context
Hi everyone, the wikipage on \starttyping (https://wiki.contextgarden.net/Command/_starttyping) says there are some dedicated commands, e.g. \startXML and \startPARSEDXML. How do they differ? Best, Denis

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Wolfgang Schuster via ntg-context
Ajith R via ntg-context schrieb am 01.01.2022 um 11:14: For Malayalam, most often we would be expecting ligation to work even within \starttyping \stoptyping. You can anyway make a typescript that matches your needs. Don't know how. Can you point towards a documentation? You can use

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Hans Hagen via ntg-context
On 1/1/2022 11:14 AM, Ajith R wrote: Don't know how. Can you point towards a documentation? \type-imp-* Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Ajith R via ntg-context
On Sat, 1 Jan 2022 11:04:03 +0100 Hans Hagen wrote: > quick and dirty > > \setuptyping[style={\definedfont[Mono*malayalam-two]}] > > \starttyping > മലയാളലിപികളുടെ ആവൃത്തി നിർണ്ണയം > \stoptyping That was a quick fix. Yes, it is working. > If the need for features i

Re: [NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2022-01-01 Thread Hans Hagen via ntg-context
the command pair \starttyping \stoptyping, conjuncts are not formed as outside the command pair. Is it possible to enforce [features=malayalam-two] even inside \starttyping \stoptyping command pair? quick and dirty \setuptyping[style={\definedfont[Mono*malayalam-two]}] \starttyping മലയാളലിപികളുടെ

[NTG-context] enforcing formation of conjuncts inside \starttyping \stoptyping

2021-12-31 Thread Ajith R via ntg-context
Hi, I am trying to prepare a moderate sized document in Malayalam using Context. Overall I have been successful. However, there are a few rough edges for which I need help. This is the sixth problem I face. If I use Malayalam inside the command pair \starttyping \stoptyping, conjuncts

[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
{\typebuffer}: \typebuffer[javacode] \type{\typing}: \starttyping try { final var num = stack.pop(); if( num != null ) { stack.push( blah ); } return true; } \stoptyping \type{\typefile}: \typefile{t.java} \stoptext There appear to be two issues. First, \typefile produces what I'd

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-12 Thread Sylvain Hubert via ntg-context
The problem also concerns \starttyping: \starttext . \startluacode context([[ \starttyping \stoptyping ]]) \stopluacode \stoptext tex error > runaway error: end of file encountered mtx-context | fatal error: return code: 256 % \starttext . \startluacode cont

Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert schrieb am 07.09.2021 um 13:38: Thanks Wolfgang, this solves my problem. But now I'm wondering why \starttyping[before=,after=] cannot do the same job? Works here. \starttext Remove space below \starttyping[before=,after=] some code \stoptyping \stoptext Wolfgang

Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 11:49: Dear List, How should we remove the vertical space above and below the following typing? \starttext Remove space below \starttyping some code \stoptyping \stoptext \setuptyping [before=,after=] Wolfgang

[NTG-context] Remove vertical space around typing

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, How should we remove the vertical space above and below the following typing? \starttext Remove space below \starttyping some code \stoptyping \stoptext Thanks! Best, Sylvain ___ If your question

Re: [NTG-context] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context
]},     after={\stoptextbackground\blank}] \starttext \starttyping example \stoptyping \stoptext \definetextbackground   [Code]   [frame=on,    framecolor=black,    corner=round,    radius=10pt,    topoffset=10pt,    leftoffset=5pt,    background=color,    backgroundcolor=gray,    location=paragraph

Re: [NTG-context] Verbatim text in a frame

2021-07-30 Thread Hans Hagen via ntg-context
] \definetextbackground   [Code]   [frame=on,    framecolor=black,    %corner=0,    %offset=10pt,    background=color,    backgroundcolor=gray,    location=paragraph] \setuptyping   [before={\blank\starttextbackground[Code]},    after={\stoptextbackground\blank}] \starttext \starttyping

[NTG-context] Verbatim text in a frame

2021-07-30 Thread Jeroen via ntg-context
=on, framecolor=black, %corner=0, %offset=10pt, background=color, backgroundcolor=gray, location=paragraph] \setuptyping [before={\blank\starttextbackground[Code]}, after={\stoptextbackground\blank}] \starttext \starttyping example \stoptyping \stoptext

Re: [NTG-context] Different Styles of Typing

2021-07-29 Thread Hans Hagen via ntg-context
On 7/28/2021 10:12 PM, Wolfgang Schuster wrote: 2. Rather than adding a additional argument to \starttyping etc. provide a \startnamedtyping with a mandatory argument with the name of the instance. ok, but i do need to check the before/after wrt setup To save a few lines of code a flag (e.g

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
it. \writestatus{loading}{ConTeXt Language Macros / Replacements} \unprotect \registerctxluafile{lang-rep}{autosuffix} \definesystemattribute[replacements][public,global] %D \startluacode %D %D -- todo: other nodes (prelude to more experiments with auto dropped caps) %D %D languages.replacem

Re: [NTG-context] Different Typing Styles

2021-07-28 Thread Bruce Horrocks via ntg-context
> On 28 Jul 2021, at 13:13, Jeroen via ntg-context wrote: > > Is there a way to have two different styles of typing. I tried the following, > but it does not seem to work. > > \setuptyping[abc][style=\ttx] > \setuptyping[def][style=\ttxx] > > \starttext >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Henning Hraban Ramm via ntg-context
> Am 28.07.2021 um 14:14 schrieb Jeroen via ntg-context : > > Is there a way to have two different types of typing. I tried the following, > but it does not seem to work. > > \setuptyping[abc][style=\ttx] > \setuptyping[def][style=\ttxx] > > \starttext > >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Hans Hagen via ntg-context
On 7/28/2021 2:14 PM, Jeroen via ntg-context wrote: Is there a way to have two different types of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] text text \stoptyping \starttyping[def

[NTG-context] Different Styles of Typing

2021-07-28 Thread Jeroen via ntg-context
Is there a way to have two different types of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] text text \stoptyping \starttyping[def] text text \stoptyping \stoptext

[NTG-context] Different Typing Styles

2021-07-28 Thread Jeroen via ntg-context
Is there a way to have two different styles of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] example example \stoptyping \starttyping[def] example example \stoptyping \stoptext Thanks

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
tdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-s

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
module is inspired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Ma

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
ired by a TeX.SE question: %D http://tex.stackexchange.com/q/39296/323 %D %D I thought that it would be fun to implement a similar feature in MetaPost. %D %D To use this package in MetaPost: %D %D \starttyping %Dinput mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Make draw and fil

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 12:23 PM, Floris van Manen wrote: \starttext \starttyping[escape=@]  1   137  26  25 >    1  69  32  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32  4   137  26  25 >    1  69  32

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
Aparently all spaces after @etex get reduced to one only. I'd expect that to happen inside @btex and @etex \starttext \starttyping[escape=@] 1 137 26 25 >1 69 32 2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 >1 69 32 3 @btex@bgroup@red@bf 137 @egroup@etex

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
On 26/04/2021 10:59, Hans Hagen wrote: \starttext \starttyping[escape=/] one two three four /btex/bgroup/red five /egroup/etex six seven eight nine \stoptyping \stoptext That works indeed! Thanks. Are there restriction on what context commands can be given inside the bgroup? e.g. I tried

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Hans Hagen
On 4/26/2021 10:25 AM, Floris van Manen wrote: What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or italic. \starttext \starttyping[escape

[NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
What is the easiest way, if possible, to highlight some sections of verbatim text? given: \starttyping one two three four five six seven eight nine \stoptyping i'd like to color the word 'five' in red, or italic. .Floris

Re: [NTG-context] Typing within doifmode leads to error

2021-03-21 Thread Christoph Reller
> ... which means that you can use that at the context end as well > > (old feature). > > > Save the following as test.mkix (or add "% macros=mkix" as the > > first line): > > > > > > ``` &g

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
ate, which is evaluated on the fly rather than when loading > > > > a > > > > file. > > > > > > define 'evaluated on the fly' > > > > Consider the following example: > > > > \enablemode[A] > > \starttext > > \start

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
example: \enablemode[A] \starttext \startluatemplate \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stopluatemplate \stoptext What I am thinking is that \startluatemplate ... \stopluatemplate grabs the content (like a buffer

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
ollowing example: \enablemode[A] \starttext \startluatemplate \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stopluatemplate \stoptext What I am thinking is that \startluatemplate ... \stopluatemplate grabs the content (like a buffer) and then processe

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
(old feature). > Save the following as test.mkix (or add "% macros=mkix" as the first line): > > ``` > \starttext > > \starttyping > A and not B > \stoptyping > > \starttyping

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
; ... which means that you can use that at the context end as well > > (old feature). > > > Save the following as test.mkix (or add "% macros=mkix" as the > > first line): > > > > > > ``` > > > \starttext >

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
t;% macros=mkix" as the first line): > > ``` > \starttext > > \starttyping > A and not B > \stoptyping > > \starttyping > not (A and not B) > \stoptyping > > \stoptext a neat application! Th

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Christoph Reller
n > >> ... > >> end > > > > ... which means that you can use that at the context end as well (old > feature). > > Save the following as test.mkix (or add "% macros=mkix" as the first > line): > > > > ``` > > \starttext > &

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Hans Hagen
llowing as test.mkix (or add "% macros=mkix" as the first line): ``` \starttext \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stoptext a neat application! Hans -

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
d "% macros=mkix" as the first line): ``` \starttext \starttyping A and not B \stoptyping \starttyping not (A and not B) \stoptyping \stoptext ``` See the templates manual for more details: https://www.pragma-ade.c

Re: [NTG-context] Bib support broken in lmtx

2021-01-30 Thread Philipp A.
hr schrieb Philipp A. >: > >> Thank you, but whitespace is ignored in .bib file syntax. To prove that >> whitespace handling isn’t the bug, just try accessing it: >> >> \startluacode >> local current = publications.datasets.default >> tex.print('\\starttyping')

Re: [NTG-context] Bib support broken in lmtx

2021-01-03 Thread Philipp A.
he bug, just try accessing it: > > \startluacode > local current = publications.datasets.default > tex.print('\\starttyping') > tex.print(table.serialize(current.luadata)) > -- to show that the key doesn’t contain weird invisible characters, I’ll > type it here:

Re: [NTG-context] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
Thank you, but whitespace is ignored in .bib file syntax. To prove that whitespace handling isn’t the bug, just try accessing it: \startluacode local current = publications.datasets.default tex.print('\\starttyping') tex.print(table.serialize(current.luadata)) -- to show that the key doesn’t

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
t; > > > Why do pass a option for the typing environment to \starttext? > > > > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > > > frame=off, location=paragraph] > > > > > > \setuptyping[before={\startbackground[code]}

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
gt; > \definetextbackground[code][background=color, backgroundcolor=lightgray, > > frame=off, location=paragraph] > > > > \setuptyping[before={\startbackground[code]}, after={\stopbackground}] > > > > \starttext[option=XML] > > \starttyping > > This is s

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
=paragraph] \setuptyping[before={\startbackground[code]}, after={\stopbackground}] \starttext[option=XML] \starttyping This is some code a second line \stoptyping \stoptext When I use \definetyping[Mytyping][option=XML] and then use \startMytyping ... \stopMytyping nothing changes

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
; > > Aditya > > > > > For example, take: > > > > > > > > > > \definetextbackground[code][background=color, > > > > > backgroundcolor=lightgray, > > > > > frame=off, location=paragraph] > > > > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
t; > > > a > > > > > > sidebar. No addition spacing / empty lines. > > > > > A MWE will help... > > > > > > > > > > Aditya > > > > For example, take: > > > > > > > > \definetextba

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
? I just want a background to these and a sidebar. No addition spacing / empty lines. A MWE will help... Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
, take: > > > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > > frame=off, location=paragraph] > > > > \starttextbackground[code] > > \starttyping > > This is some code > > a second line > > \stoptyping > > \st

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
... Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code a second line \stoptyping \stoptextbackground You missed the W (working) in MWE. \definetextbackground

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
> > > sidebar. No addition spacing / empty lines. > > > > A MWE will help... > > > > Aditya > > For example, take: > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > frame=off, location=paragraph] >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
> > Aditya For example, take: \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off, location=paragraph] \starttextbackground[code] \starttyping This is some code a second line \st

[NTG-context] extra warning in the lua version

2020-11-09 Thread Sylvain Hubert
xtable() context.startxrow() context.startxcell() context.starttyping() context('1') context.stoptyping() context.stopxcell() context.stopxrow() context.stopxtable() \stopluacode % this does not \startxtable \startxrow \startxcell \starttyping

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Hans Hagen
\setuptagging[state=start] \starttext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. because \doverbatimspace is defined in a way that will look ahead \unexpanded\def

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
ext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. Many thanks for your help, Pablo > well, the clue is there: you have > > you have a \hskip or \vskip someplace that is not properl

Re: [NTG-context] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of

Re: [NTG-context] [pretty printing python]

2020-05-24 Thread Henning Hraban Ramm
> Am 24.05.2020 um 14:04 schrieb Floris van Manen : > > Does anyone know how to activate/use the pretty printing of python code? > > \starttyping[option=python] > > does not work. No, ConTeXt supports only TeX, XML, MetaPost and Lua. Try Aditya’s vim module: https

[NTG-context] [pretty printing python]

2020-05-24 Thread Floris van Manen
Does anyone know how to activate/use the pretty printing of python code? \starttyping[option=python] does not work. .Floris pEpkey.asc Description: application/pgp-keys ___ If your question is of interest

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
the C example, however this does not seem to work. No > > formatting is applied to my keywords. > > Can you provide a minimal example what you have tried. > > > Just wondering if the way to do it has changed or if there are other > > examples I could look at to compare with what I'm doi

Re: [NTG-context] Source Code with Bolded Keywords

2020-03-14 Thread Wolfgang Schuster
. \starttext \starttyping[escape=yes] This is /BTEX\bf formatted/ETEX text. \stoptyping \starttyping[escape={<<,>>}] This is <<\bf formatted>> text. \stoptyping \starttyping[escape={}] This is text. \stoptyp

[NTG-context] \type ignores space between command and bracket

2019-11-05 Thread Wolfgang Schuster
Hi, in the following code example the result from \type lacks the space between \cmd and the following left bracket. \starttext \starttyping \cmd [...] \stoptyping \type{\cmd [...]} \stoptext Wolfgang

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
Wolfgang will cook up a patch ... The best solution is to remove the values from all three keys because for now each of them is applies twice (even the style). \setuptyping   [before=\hairline,     after=\hairline,     style=\tt\em] \starttext \starttyping[option=tex] \donothing \stoptyping

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping   A = B + C \stoptyping \stoptext gives the attached output where the background is repeated twice. The bug is present with both mkiv and ltmx. Aditya

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
Hi, The following minimal example: \definetextbackground [EXAMPLE] [ location=paragraph, rulethickness=1pt, leftoffset=5em, rightoffset=0mm, ] \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C

Re: [NTG-context] Setup typing indent next

2019-01-10 Thread Wolfgang Schuster
] \setuptyping[indentnext=auto] \starttext \starttyping Typing \stoptyping Paragraph \starttyping Typing \stoptyping Paragraph \stoptext Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Monospace fallback kerning

2018-12-19 Thread Hans Hagen
=yes] \setupbodyfont [dejavu,10pt] \showglyphs \starttyping 푷₂₀(0), ∀²푥⁰⁺²₂₀: 푷₂₀(푥⁰⁺²₂₀) ⇒ 푷₂₀(s(푥⁰⁺²₂₀)) ⊢ ∀¹푦⁰⁺¹₂₀ 푷₂₀(푦⁰⁺¹₂₀) \stoptyping \startformula 푷₂₀(0), ∀²푥⁰⁺²₂₀: 푷₂₀(푥⁰⁺²₂₀) ⇒ 푷₂₀(s(푥⁰⁺²₂₀)) ⊢ ∀¹푦⁰⁺¹₂₀ 푷₂₀(푦⁰⁺¹₂₀) \stopformula ah, so it's time for some new (undocumented) math

Re: [NTG-context] Monospace fallback kerning

2018-12-19 Thread Hans Åberg
[stixtwotext] >> [range={0100-10},factor=1] [force=yes] >> \setupbodyfont >> [dejavu,10pt] >> \showglyphs >> \starttyping >> 푷₂₀(0), ∀²푥⁰⁺²₂₀: 푷₂₀(푥⁰⁺²₂₀) ⇒ 푷₂₀(s(푥⁰⁺²₂₀)) ⊢ ∀¹푦⁰⁺¹₂₀ 푷₂₀(푦⁰⁺¹₂₀) >> \stoptyping >> \startformula >> 푷₂₀

Re: [NTG-context] Monospace fallback kerning

2018-12-19 Thread Hans Hagen
(though not in the case below), and that is used in tensor notation. In TeX, the original suggestion is to use {} in such a case. — \definefontfallback [Mono] [stixtwotext] [range={0100-10},factor=1] [force=yes] \setupbodyfont [dejavu,10pt] \showglyphs \starttyping 푷₂₀(0), ∀²푥⁰⁺²₂₀: 푷

Re: [NTG-context] Monospace fallback kerning

2018-12-19 Thread Hans Åberg
example below math mode. But actually, there may be a semantic difference between the order (though not in the case below), and that is used in tensor notation. In TeX, the original suggestion is to use {} in such a case. — \definefontfallback [Mono] [stixtwotext] [range={0100-10},fact

  1   2   3   4   5   6   >